﻿namespace EyeOpen.Security.Server.BootStrapper
{
    using EyeOpen.Data;
    using EyeOpen.Dependency;
    using EyeOpen.TimeAssistant.Server.BootStrapper;

    public class TimeAssistantDatabaseFactory
    {
        public void CreateDatabase()
        {
            DependencyContainerService
                .Configure<TimeAssistantContainerConfigurator>();

            var timeAssistantDataBase = 
                DependencyContainerService
                    .Instance
                    .Resolve<IDatabase>(TimeAssistantContainerConfigurator.TimeAssistantConfigurationName);

            timeAssistantDataBase.CreateDataBase();
        }
    }
}